package model.readers.PMetro;
public class ReadFromPMetro {
	
	ZipResources zipArchive;
	String nameZipArchive;
	
	public ReadFromPMetro(String nameZipArchive){
		this.nameZipArchive = nameZipArchive;
		this.zipArchive = new ZipResources(nameZipArchive);
	}
	
	String getFileContent(String string){
		
		byte[] addr = zipArchive.getResource(string);
		if (addr == null) {
			//file not found
			return null;
		} else {
			//file found and read
			String timeString = new String(addr);
			return timeString;
		}
	}
	
	String getName(){
		return nameZipArchive;
	}

}
